import Vue from 'vue'
import VueRouter from 'vue-router'

import Reg from '@/views/Reg/Reg.vue'
import Login from '@/views/Login/Login.vue'

Vue.use(VueRouter)

// 路由规则
const routes = [

  {
    path: '/login', name: 'login', component: Login // 登陆
  },

  {
    path: '/reg', name: 'reg', component: Reg //   注册
  }
]

const router = new VueRouter({ routes })

export default router
